
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600

import kytten
'''
KYTTEN_THEME = kytten.Theme('resources/theme', override={
    "gui_color": [255, 235, 128, 255],
    "font_size": 12,
})
'''
KYTTEN_THEME = kytten.Theme('resources/theme')


# planet related constants
PLANET_MIN_SIZE = 4
PLANET_MAX_SIZE = 10
PLANET_TYPES = 6
PLANET_RADAR_RADIUS = 30
# ordered by average temperature
PLANET_TYPE_ICE = 0
PLANET_TYPE_ROCK = 1
PLANET_TYPE_TERRAN = 2
PLANET_TYPE_JUNGLE = 3
PLANET_TYPE_DESERT = 4
PLANET_TYPE_INFERNO = 5
PLANET_TYPE_NAMES = { PLANET_TYPE_ICE: 'Ice', PLANET_TYPE_ROCK: 'Rock', PLANET_TYPE_TERRAN: 'Terran', PLANET_TYPE_JUNGLE: 'Jungle', PLANET_TYPE_DESERT: 'Desert', PLANET_TYPE_INFERNO: 'Inferno'}

# planet storage
MAX_STORED_MINERALS = 50
MAX_STORED_ORGANICS= 50

# galaxy related constants
GALAXY_SIZE = 100
GALAXY_MAX_PLANETS = 20
GALAXY_MIN_PLANETS = 7
GALAXY_MIN_PLANET_DISTANCE = 8

# owners (applicable to planets, ships, soldiers)
OWNER_NONE = 0
OWNER_PLAYER = 1
OWNER_ENEMY = 2
OWNER_NAMES = {OWNER_NONE:'No one',OWNER_PLAYER:'Player',OWNER_ENEMY:'Enemy'}

# soldier related constants
SOLDIER_TRAINING_RATE = 1.1 # the higher this is the faster soldiers train
SOLDIER_MAX_POWER = 10 # maximum level that a soldier can get; when he reaches this he stops training
SOLDIER_CAP = 54 # maximum number of soldiers per planet

# how many people can live in a house
HOUSE_CAPACITY = 10

# how many galaxy update cycles are needed for the population to increase
POPULATION_TIMER = 5

SHIP_STATUS_BUILDING = 0
SHIP_STATUS_DOCKED = 1
SHIP_STATUS_FLYING = 2
SHIP_BUILDING_TIME = 5
SHIP_BUILDING_MINERALS_COST = 5 # building cost in minerals
SHIP_BUILDING_PEOPLE_COST = 5 # people needed to build a ship
SHIP_CARGO_SPACE = 100
SHIP_SPEED = 1.0
SHIP_CAP = 20 # maximum amount of ships per planet

# building types
BUILDING_NONE = 0
BUILDING_BASE = 1
BUILDING_HOUSE = 2
BUILDING_FARM = 3
BUILDING_MINE = 4
BUILDING_NAMES = {BUILDING_NONE : 'None',BUILDING_BASE : 'Base',BUILDING_HOUSE : 'House',BUILDING_FARM : 'Farm',BUILDING_MINE : 'Mine'}
BUILDING_MINERAL_COSTS = {BUILDING_NONE : 0,BUILDING_BASE : 20,BUILDING_HOUSE : 3,BUILDING_FARM : 5,BUILDING_MINE : 7}
BUILDING_PEOPLE_COSTS = {BUILDING_NONE : 0,BUILDING_BASE : 10,BUILDING_HOUSE : 1,BUILDING_FARM : 2,BUILDING_MINE : 5}


